Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dir and repl-opts to the cljs-task #40

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hoeck
Copy link

@hoeck hoeck commented Apr 12, 2016

I extended the cljs-repl task to allow setting the :output-dir for code compiled on the CLJS REPL (e.g. when require-ing a namespace) and other CLJS REPL options. This fixes #36 and #32, the former really annoying me as I couldn't simply (require 'cljs.pprint) on the repl.

Unfortunately, I was not able to find an automated way of getting the current target dir and compilation file (I'm using the new target task in my setup), so I settled on an option to the to set the REPLs :output-dir manually. It defaults to "target/main.out", which will work with the setup that I copied from the boot-cljs-example-repo.

Allows setting the :output-dir for code compiled on the cljs repl (e.g.
when require-ing a namespace) and other cljs repl options.

fixes adzerk-oss#36
@Deraen
Copy link
Contributor

Deraen commented Jun 13, 2016

This simple approach won't work because we can't trust that target dir exists. Users might not even have any target dir etc.

Proper solution is to somehow (fileset metadata) publish the temp-dir used by boot-cljs so we can use that here.

@nikki93
Copy link

nikki93 commented May 31, 2017

@Deraen Any updates on this since? Will try this workaround but wondering if this was fixed or there is another workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

can't require a namespace from the repl
3 participants